/**
 * 红包牛牛的规则
 */
var niuniuRule = function() {
    this.map = {

    };
    this.map["金牛"] = {
        display: "金牛",
        rate: 12,
    };
    this.map["对子"] = {
        display: "对子",
        rate: 13,
    };
    this.map["顺子"] = {
        display: "顺子",
        rate: 14,
    };
    this.map["倒顺"] = {
        display: "倒顺",
        rate: 15,
    };
    this.map["满牛"] = {
        display: "满牛",
        rate: 16,
    };
    this.map["炸弹"] = {
        display: "炸弹",
        rate: 17,
    };
    this.map["牛牛"] = {
        display: "牛牛",
        rate: 11,
    };
    for (var i = 1; i <= 9; i++) {
        this.map["牛" + i] = {
            display: "牛" + i,
            rate: i + 1,
        }
    }
};
niuniuRule.prototype = {};
niuniuRule.prototype.construct = niuniuRule;

niuniuRule.prototype.getTargetName = function(name) {
    return this.map[name] ? this.map[name].display : name;
};

window.NiuniuRule = new niuniuRule();
